package com.design.absfactory.factory;

import com.design.absfactory.impl.IntelCpu;
import com.design.absfactory.impl.IntelMainboard;
import com.design.absfactory.inter.AbstractFactory;
import com.design.absfactory.inter.Cpu;
import com.design.absfactory.inter.Mainboard;

/**
 * Created by Administrator on 2016/8/27.
 *
 * 抽象工厂
 */
public class IntelFactory implements AbstractFactory {


    @Override
    public Cpu createCpu() {
        return new IntelCpu(755);
    }

    @Override
    public Mainboard createMainboard() {
        return new IntelMainboard(755);
    }
}
